<template>
  <div class="container">
    <div class="logo">
      <img alt="logo" src="@/assets/images/logo.png" width="50" height="50" />
      <div class="logo-text">K 博士</div>
    </div>
    <div class="content">
      <div class="content-inner">
        <LoginForm />
      </div>
      <div class="footer">
        <Footer />
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import Footer from '@/components/footer/index.vue';
  import LoginForm from './components/login-form.vue';
</script>

<style lang="less" scoped>
  .container {
    display: flex;
    height: 100vh;
    background-image: url('@/assets/images/image.png');
    background-size: cover; /* 图片将按比例缩放以覆盖整个元素 */
    background-position: center; /* 将图片居中 */
    background-repeat: no-repeat; /* 确保图片不重复 */

    .content {
      position: relative;
      display: flex;
      flex: 1;
      align-items: center;
      justify-content: center;
      padding-bottom: 40px;
    }

    .logo-text {
      font-family: 'SimHei', 'Microsoft YaHei', sans-serif;
      font-weight: bold;
      color: #000;
    }

    .footer {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 100%;
    }
  }

  .logo {
    position: fixed;
    top: 24px;
    left: 22px;
    z-index: 1;
    display: inline-flex;
    align-items: center;

    &-text {
      margin-right: 4px;
      margin-left: 4px;
      color: var(--color-fill-1);
      font-size: 20px;
    }
  }
</style>